@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './sidebar.scss';

body {
  height: 100%;
  overflow: auto;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  outline: none;
  text-decoration: none;
}

div:focus {
  outline: none;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

//main-container全局样式
.app-main {
  // min-height: 100%;
  padding: 10px 10px 60px 10px;
}

.app-container {
  padding: 10px;
  width: 100%;
}

.input-tree {
  position: absolute;
  overflow: auto;
  z-index: 1000;
  width: 100%;
  height: auto;
  border: 1px solid #ebeef5;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
}

.el-scrollbar__wrap {
  overflow-x: hidden;
}

.el-range-separator {
  box-sizing: content-box;
}

.el-picker-panel {
  overflow: auto;
  width: 100% !important;
  max-width: 756px;
  box-sizing: content-box;
}

.user-select-none {
  user-select: none;
}

.el-select-dropdown__wrap.el-scrollbar__wrap {
  margin-bottom: 0 !important;
}

.el-popper {
  max-width: 90%;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-left {
  display: flex;
  align-items: center;
  justify-content: left;
}

.el-table::before {
  height: 0;
}

.el-table--border::after,
.el-table--group::after {
  width: 0;
}


.el-table {
  font-size: 12px; 
  text-align: center;

  .el-table__header-wrapper {
    background-color: #ecf2fb;
  }
  th{
    .cell {
      text-align: center;
    }
  }
  td {
    padding: 5px 0;
    color: #000000;
  }

  th:not(.is-hidden) {
    padding: 6px 0;
    background-color: #ecf2fb;
    color: var(--title-font-color);
    border-left: 1px solid #ffffff;
  }

  .el-button--text {
    padding: 0;
    min-height: 20px;
    font-size: inherit;
  }

  .el-table__cell {
    padding: 5px 0;
  }

  .cell {
    line-height: 24px;
  }
}

.el-table__header-wrapper th {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #fff; /* 根据需要调整背景色 */
}


.row-line {
  position: relative;
}

.row-line::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px; /* 或者你想要的厚度 */
  background-color: #ccc; /* 或者你想要的划线颜色 */
}


.btn-primary {
  color: #3a8ee6;
  cursor: pointer;
}


.header {

  color: #fff;
  display: flex;
  padding: 0 10px;
  align-items: center;
  background-color: #304156;
  height: var(--header-height);
  backface-visibility: hidden;

  img {
    border-radius: 3px;
    vertical-align: middle;
  }

  span.product-name {
    padding: 0 10px;
    font-size: 16px;
  }
}

// 新改版样式
:root {
  --header-height: 60px;

  --content-font-size: 12px;

  --title-font-size: 14px;
  --title-font-color: #707070;

  --button-font-size: 12px;

  --label-font-size: 12px;
  --label-font-weight: 400;
  --label-font-color: #707070;

  --input--font-color: #6e9efd;
  --input-backgroud-color: #d1f0ff;

  --select--icon-color: #6e9efd;
  --select-backgroud-color: #d1f0ff;
  --page-select-font-color: #4084D6;

  --place--holder-color: #6e9efd;

  //二级标题组件
  --title-wrapper-height: 40px;
  --title-wrapper-margin-bottom: 13px;
}

.sj-table {
  margin-top: -10px;
  padding: 0 10px 10px 10px; 
}

.el-table {

  .el-table--striped .el-table__body tr.el-table__row--striped td {
    background-color: #f8f8f8;
  }
   /* 设置el-table-column的宽度为150px */
  .el-table__body .el-table-column {
    text-align: 'center';
  }
  
  /* 设置el-table-column内文本的垂直对齐方式为居中 */
  .el-table__body .el-table-column .cell {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .el-table__fixed-right::before,
  .el-table__fixed::before {
    height: 0;
  }

  .cell {
    white-space: nowrap;
  }
}

.el-table .header-cell-style{
  text-align: center;
}
.el-table .cell-style{
  text-align: center;
}

.el-table .el-table-column{
  text-align: center; 
}
.el-menu {
  .el-menu-item {
    height: 50px;
    line-height: 50px;
  }
.el-sub-menu{
  .el-menu-item {
    font-style: italic;
    font-size: 12px;
  }
}
  .svg-icon {
    color: #fdfdfd;
  }
}
.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}


.el-dialog { 
  border-radius: 3px;

  %el-button {
    min-height: 26px;
    padding: 5px 20px;

    >span {
      font-size: var(--button-font-size);
    }
  }

  .el-dialog__header {
    background: #f5f9fd;
    padding: 6px 10px;
    border-radius: 3px;

    .el-dialog__title {
      font-size: var(--title-font-size);
    }

    .el-dialog__headerbtn {
      top: 0;
      width: 40px;
      height: 40px;
      i {
        font-weight: bold;
      }
    }
  }

  .el-dialog__body {

    ::placeholder {
      color: var(--place--holder-color);
      font-size: var(--content-font-size);
    }

    .el-form {

      >.el-form-item:not(.btn-grp) {
        margin-bottom: 17px;
      }
    }

    .el-form-item:not(.btn-grp) {
      padding: 0 5px;
      border-radius: 3px;
      align-content: center;
      background-color: var(--input-backgroud-color);

      .el-tree {
        background: transparent;
      }

      .el-input-number.is-controls-right .el-input-number__decrease,
      .el-input-number.is-controls-right .el-input-number__increase {
        height: auto;
        line-height: 13px;
        background: transparent;
        right: -4px;
        //border: none;
      }

      .el-form-item__label,
      .el-form-item__content,
      .el-input {
        line-height: normal;
      }

      .el-input__inner {
        font-size: var(--content-font-size);
        color: var(--input--font-color)
      }

      .el-select__caret,
      .el-input__icon {
        line-height: 28px;
        color: var(--select--icon-color)
      }

      .el-form-item__error {
        right: 0;
        left: auto;
      }

      .el-form-item__label {
        margin: auto;
        text-align: left;
        font-size: var(--content-font-size);
        font-weight: normal;
      }

      .el-input__inner,
      .el-textarea__inner {
        border: none;
        background: transparent;
        border-left: 1px solid #fff;
      }

      .el-input__inner {
        height: 28px;
      }
    }

    .btn-grp {

      .el-form-item__content {
        text-align: right;
      }

      .el-button {
        @extend %el-button;
      }

    }

  }

  .el-dialog__footer {

    .el-button {
      @extend %el-button;
    }
  }
   
  &.is-draggable {
    max-height: calc(90vh - 50px);
    margin-top: 10vh;
    overflow-y: auto;
  }
}

.el-select-dropdown__item {
  font-size: var(--content-font-size);
}

.user {
  padding: 10px 36px !important;
}

.block {
  height: 53px;
  padding: 10px 0px !important;
  padding: 0px 30px 10px 50px !important;

  .el-button[type="button"] {
    min-height: 20px;
    padding: 5px 20px;
    font-size: 12px;
  }
}

.title-btns {
  padding-top: 10px !important;
}

.el-notification .el-icon-success {
  color: var(--el-color-success);
}

.page-wrapper {

  .total-nums {
    float: left;
    height: 32px;
    line-height: 32px;
    margin-left: 10px;
    color: var(--input--font-color);
    font-size: var(--content-font-size);
  }
}

.el-pagination {
  text-align: right;

  //.el-pagination__rightwrapper {
  //  float: left;
  //}

  .el-pagination__sizes {

    //.el-input__inner {
    //  background-color: #d1f0ff;
    //}
  }
}

.daf-slider-tooltip {
  --background-color: #4b82f1;

  color: #ffffff;
  z-index: 3000 !important;
  background: var(--background-color) !important;

  .el-popper__arrow {

    &:before {
      background: var(--background-color) !important;
    }
  }
}

.daf-popper {
  div.el-popover__title {
    font-size: var(--title-font-size);
  }

  div.content-text {
    font-size: var(--content-font-size);
  }
}

.el-notification {
  z-index: 2060 !important;
}


.query-wrapper {
  display: flex;
  margin: 10px 15px  0 0px;
  border-radius: 3px;
  align-items: center;
  height: var(--input-height);
  font-size: var(--content-font-size);
  line-height: var(--input-line-height);
  // width: 900px;

  .label {
    width: 100px;
    padding: 0 8px;
    border-right: 1px solid #fff;
    color: var(--label-font-color);
  }

  @mixin clear-input-style {
    outline: none;
    height: 25px;
    min-height: var(--input-height);
    line-height: var(--input-line-height);
  }

  ::v-deep(.el-input) {
    @include clear-input-style;

    .el-input__inner {
      @include clear-input-style;
      color: var(--input--font-color);
    }

    .el-input__clear {
      line-height: var(--input-line-height);
    }
  }
}

.wrap-text {
  white-space: normal;
}
 

.mb8 { 
	margin-bottom: 8px;
}

.pkgs-box {
  width: 50%;
  text-align: center;

  &:first-child {
    border-right: 1px solid #ccc;
  }
}
.tip-box {
display: flex;
flex-wrap: wrap;
.tip-item {
  margin: 20px;
  display: flex;
  width: 30%;
  .title {
    width: 100px;
  }
}
}

.item-box {
border: 1px solid #ccc;
margin: 20px 0;
}

.el-select_dropMenu {
  .el-input__wrapper {
    padding: 4px 6px;
    border: none;
    box-shadow: none;
    background-color: transparent;
    .el-input__inner {
      display: none;
    }
    .el-select__icon {
      margin-left: 0;
    }
  }
  &.el-select .el-input.is-focus,
  &.el-select:hover:not(.el-select--disabled) {
    .el-input__wrapper {
      box-shadow: none !important;
    }
  }
}

.el-popper {
  max-width: 40% !important;
  text-align: left;
}







/* 修改 el-loading 样式 */
 .el-loading-mask {
  background: rgba(250, 250, 250, 0.6) !important; /* 背景透明度 */
  .circular {
    display: none;
  }
}

/* 自定义 loading 文字 */
 .el-loading-text {
  font-size: 18px;
  font-weight: bold;
  // color: #00eaff; /* 霓虹蓝色 */
  // color: #fff !important;
  // text-shadow: 0 0 10px #00eaff, 0 0 20px #00eaff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 50px);




}

/* 自定义 loading icon */
 .el-loading-spinner {
  position: relative;
}

/* 霓虹旋转环 */
 .el-loading-spinner:before {
  // content: "";
  // width: 64px;
  // height: 64px;
  // border-radius: 50%;
  // border: 4px solid transparent;
  // border-top-color: #00eaff;
  // border-right-color: #00eaff;
  // animation: neon-spin 1s linear infinite;
  // position: absolute;
    // box-shadow: 0 0 10px #00eaff, 0 0 20px #00eaff;

  content: "";
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 5px solid transparent;
  border-top-color: #ff5733;
  border-right-color: #ffbd33;
  border-bottom-color: #33ff57;
  animation: rotate-ring 1.5s linear infinite;
  position: absolute;


  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

}

@keyframes rotate-ring {
  // 0% { transform: rotate(0deg); }
  // 100% { transform: rotate(360deg); }
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
// 修改全局表格样式，使用更高优先级的选择器
// 放在文件末尾
// 确保表格选中行高亮生效的全局样式
.el-table {
  // 提高选择器优先级，确保覆盖组件内的样式
  &.el-table {
    // 当前选中行 - 使用更高优先级选择器
    .el-table__body {
      tr.current-row > td {
        background-color: #e6f7ff !important;
        color: #304156 !important;
      }
      
      // 鼠标悬停行
      tr:hover > td {
        background-color: #e1eafd !important;
         color: #304156 !important;
      }
      
      // 覆盖组件内的选中行样式
      tr.warning_row > td {
        background-color: #e6f7ff !important;
      }
      
      // 覆盖组件内的其他自定义行样式
      tr.success_row > td {
        background-color: #f5f7fa !important;
      }
    }
    
    // 确保斑马纹样式不影响高亮效果
    .el-table--striped .el-table__body tr.el-table__row--striped.current-row > td {
      background-color: #e6f7ff !important;
    }
  }
}




